package CTRLayer;
import ModelLayer.*;
import java.util.ArrayList;

/**
 * Write a description of class OrderCTR here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class OrderCTR
{
    // instance variables
    private OrderCollection orders;
    private PersonCollection persons;
    
    public OrderCTR()
    {
        orders = OrderCollection.getInstance();   
    }

    public void addCustomer(String phoneNo)
    {
        Customer customer = (Customer) persons.findPerson(phoneNo);
        Order order = orders.findOrder(phoneNo);
        order.setCustomer(customer);
    }
    
    public void addSalesMan(String phoneNo)
    {
    }
    
    public void addProduct(int barcode)
    {
    }
    
    public ArrayList<Order> findOrders(int phoneNo)
    {
    }
    
}